@class TileSet;
@protocol GameObjectDelegate;
@interface GameObject :UIControl
{
	int currentFrame;
	int x,y;
	TileSet* set;
	id<GameObjectDelegate> delegate;
	
}
@property int currentFrame,x,y;
@property (nonatomic,retain) TileSet* set;
@property (nonatomic,retain) id<GameObjectDelegate> delegate;

-(id)initWithDictionary:(NSDictionary*)dic;
-(id)initWithDictionary:(NSDictionary*)dic width:(int)w  height:(int)h;
-(NSMutableDictionary*) toDictionary;
@end
@protocol GameObjectDelegate<NSObject>
@optional
-(void)gameObjectTapped:(GameObject*)go;
@end
